public class TestDemo1 {
    public static void main(String[] args) {
        int[] arr = {1,2,34,3,4,5,7,23,12};
        boolean flg = check(arr);
        System.out.println(flg);
    }

    public static boolean check(int[] arr){
        boolean flg = false;
        for(int i = 0; i < arr.length-2; i++){
            if(arr[i]%2 != 0 && arr[i+1]%2 != 0 && arr[i+2]%2 != 0){
                flg = true;
                break;
            }
        }
        return flg;
    }
}
